<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>作者书籍</h1>
<form method="post">
    {{ form.csrf_token() }}
    {{ form.wtf_au.label }}
    {{ form.wtf_au }}<br>
    {{ form.wtf_bk.label }}
    {{ form.wtf_bk }}<br>
    {{ form.submit }}
</form>
<hr/>
<ul>
    {# 遍历视图返回的书籍信息 #}
    {% for x in auth %}
        <li>{{ x }}</li><a href="/delete_author/{{ x.id }}/">删除</a>
    {% endfor %}
</ul>
<hr/>
<ul>
    {# 遍历视图返回的书籍信息 #}
    {% for x in book %}
        <li>{{ x }}</li><a href="/delete_book/{{ x.id }}/">删除</a>
    {% endfor %}
</ul>
</body>
</html>